public class demo14 {
    public static void main(String[] args) {
        //鸡的数量
        int hen = 0;
        int gong = 0;
       int little = 0;
        int sum = 100;

        for(hen=0;hen<=100;hen++){
            for(gong=0;gong<=100;gong++){
                for (little=0;little<=100;little++){
                    if ((hen+gong+little==100) &&(hen*3+gong*4+little*0.5==100)){
                        System.out.println("母鸡"+hen+"只");
                        System.out.println("公鸡"+gong+"只");
                        System.out.println("小鸡"+little+"只");


                    }
                }
            }
        }

    }
}